/* Author: CLR */

import java.io.*;

public class CoachListTester {

	public static void main(String[] args) throws FileNotFoundException {
		CoachList coachList = new CoachList();
		System.out.println(coachList.loadAllObjectsFromFile("Coaches.txt"));
		
		Coach johnDoe = new Coach("John Doe", "Main street 1", "35203520");
		coachList.saveObject("Coaches.txt", johnDoe);
		System.out.println(coachList.loadAllObjectsFromFile("Coaches.txt"));
		
	
	}


}